package com.lcq.study.normal;

/**
 * @ClassName ByteTest
 * @Description
 * @Author lichuanqi
 * @Date 2022/1/21 16:22
 * @Version 1.0
 **/
public class ByteTest {
    public static void main(String[] args) {
        int testByte = 0;
        testByte = testByte | 1;
        System.out.println(Integer.toBinaryString(testByte));
        testByte = testByte | 2;
        System.out.println(Integer.toBinaryString(testByte));
        testByte = testByte | 4;
        System.out.println(Integer.toBinaryString(testByte));
        testByte = testByte | 8;
        System.out.println(Integer.toBinaryString(testByte));
    }
}
